/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package utils.response;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 *
 * @author Alisson
 */
public class BadResquestResponse implements Response{

    protected static final DateFormat HTTP_DATE_FORMAT = new SimpleDateFormat(
                    "EEE, dd MMM yyyy HH:mm:ss z");
    public String respond() {
        StringBuilder sb = new StringBuilder();
        sb.append("HTTP/1.0 400 Bad Request\r\n");
        sb.append("Date: ").append(HTTP_DATE_FORMAT.format(new Date()))
                .append("\r\n");
        sb.append("Server: JAVASERV Trabalho de Redes").append("\r\n");
        sb.append("\r\n");
        return sb.toString();

    }

    public byte[] getReturnFile() {
        return (new byte[0]);
    }

}
